<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<header>
    <meta charset="utf-8">
    <title>首页</title>
</header>
<body>
<h3>struts登录示例</h3>
<form action="login" method="post">
    用户名：<input type="text" name="uname" autofocus>
    密钥：<input type="text" name="upass">
    <input type="submit" value="登录">
</form>
<h3>struts标签示例</h3>
<s:iterator begin="1" end="10" step="2" var="i">
    <h4>${i}</h4>
</s:iterator>
<h3>com.mj.action示例</h3>
<a href="/ts">ts</a>
<a href="/st">st</a>
<h3>查看源码</h3>
<br>
<form action="sourcecode" method="post">
输入要查看源码的页面名字<input type="text" name="sname">
    <input type="submit" value="提交">
</form>
</body>
</html>